package com.kongyz;

import com.kongyz.customer.AbstractCustomer;
import com.kongyz.customer.CustomerFactory;

/**
 * @author kongyz
 * @date 2018/7/5 22:09
 * @Description:
 */
public class Demo {
    public static void main(String[] args) {
        AbstractCustomer customer1=CustomerFactory.getCustomer("余姚");
        AbstractCustomer customer2=CustomerFactory.getCustomer("漯河");
        AbstractCustomer customer3=CustomerFactory.getCustomer("玉环");
        AbstractCustomer customer4=CustomerFactory.getCustomer("海盐");


        System.out.println("客户名称：");

        System.out.println(customer1.getName());
        System.out.println(customer2.getName());
        System.out.println(customer3.getName());
        System.out.println(customer4.getName());


    }
}
